package com.sun.showcase;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.sun.showcase.conf.MyServletContextListener;

@SpringBootApplication
@EnableScheduling
@EnableAsync
@ServletComponentScan
public class MallApplication {

	public static void main(String[] args) {
		SpringApplication.run(MallApplication.class, args);
	}

	@Bean
	public MyServletContextListener profileAdminListener() {
		return new MyServletContextListener();
	}

}
